
//- This Source Code Form is subject to the terms of the Mozilla Public
//- License, v. 2.0. If a copy of the MPL was not distributed with this
//- file, You can obtain one at http://mozilla.org/MPL/2.0/.
//-
//- Copyright (c) 2021-present Kaleidos Ventures SL

.create-project-action
    button.btn-small.create-project-action-cancel(
        variant="secondary"
        type="button"
        ng-click="vm.onCancelForm()"
        title="{{'PROJECT.CREATE.BACK' | translate}}"
        translate="PROJECT.CREATE.BACK"
    )
    button.btn-small.create-project-action-submit.e2e-create-project-action-submit(
        type="submit"
        tg-loading="vm.formSubmitLoading"
        ng-disabled="(vm.projectForm.is_private && !vm.canCreatePrivateProjects.valid && vm.canCreatePrivateProjects.reason == 'max_private_projects') || (!vm.projectForm.is_private && !vm.canCreatePublicProjects.valid && vm.canCreatePublicProjects.reason == 'max_public_projects')"
        translate="PROJECT.CREATE.TITLE"
    )
